import { useContext } from "react";
import RootContext from "../context/rootContext";

const Alert = () => {
    const { count } = useContext(RootContext);
    return (
        <div className='alert alert-info' style={{ marginTop: 20 }}>
            当前数值为：{count}
        </div>
    );
};

export default Alert;
